home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 271_02 / setasync.doc < prev    next >
Text File  |  1987-08-18  |  1KB  |  41 lines

  1.  
  2.  
  3.         NAME
  4.                 setdtr -- set state of data terminal ready flag
  5.                 setrts -- set state of ready to send flag
  6.  
  7.         SYNOPSIS
  8.                 void setdtr(port, mode);
  9.                 void setrts(port, mode);
  10.                 int port;        0, 1, 2, or 3 (for COM1-COM4)
  11.                 int mode;        TRUE to set flag, FALSE to clear flag
  12.  
  13.  
  14.         DESCRIPTION
  15.         These are assembly language functions which provide direct
  16.         access to the serial communications chips for the fastest
  17.         access possible.  Each function sets a particular
  18.         communications output bit to the condition stated by "mode".
  19.         The port parameter may be specified as integers 0-3, or
  20.         SER1 to SER4 as defined in <smdefs.h>.
  21.  
  22.  
  23.  
  24.         EXAMPLE
  25.  
  26.             int sport;        /* serial port */
  27.  
  28.             sport = SER2;     /* let it point to COM2 */
  29.             setdtr(sport, YES);  /* take the modem offhook */
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.         This function is found in SMTCx.LIB for the Turbo-C Compiler
  41.